package com.mblog.article.service;

import java.util.List;
import java.util.Map;

import com.mblog.article.entity.MBlogMain;
import com.mblog.util.PageBean;
import com.mblog.util.PageHelper.Page;

public interface ArticleService {
	
    int deleteByPrimaryKey(Integer id);

    int insert(MBlogMain record);

    MBlogMain selectByPrimaryKey(Integer id);

    List<MBlogMain> selectAll(Map<String, Object> map);

    int updateByPrimaryKey(MBlogMain record);
    
    //获取分页数据
    PageBean selectAllArticleByPage(int pageNo, int pageSize,Map<String, Object> map);
    
    List<MBlogMain> selectAllArticleTags();
    
    MBlogMain selectPreArticleById(Integer id);
    
    MBlogMain selectNextArticleById(Integer id);
}